<%= form_tag ("../user_stories/addratingtosprintbacklog"), :remote => false, :id => 'user_stories', :name => 'user_stories' do %> <!-- , remote: true -->

	<table id="user_story_rating">
		
		<tr>
			<th>ID</th>
			<th>&Uuml;berschrift</th>
			<th>Rating</th>
		</tr>

	<% @user_stories.each do |user_story| %>
	
		<% if(user_story != nil) %>
		
		<tr>
			<td><%= user_story.id %></td>
			<td><%= user_story.headline %></td>
			<td><%= select("user_story", user_story.id, UserStoryRating.all.collect {|u| [u.rating, u.id]}, {include_blank: '--- Bitte wählen ---'}) %></td>
		</tr>
		
		<% end %>
		
	<% end %>

	</table>
	
	<%= submit_tag("User Stories bewerten") %>

<% end %>